package eScrum.pages;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.model.IModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;

public class BasePage extends WebPage {

	private static final long serialVersionUID = 1542928733608706772L;

	public BasePage() {
		super();
		
		this.setOutputMarkupId(true);

		init();
	}

	public BasePage(IModel<?> model) {
		super(model);
		
		this.setOutputMarkupId(true);

		init();
	}

	public BasePage(PageParameters parameters) {
		super(parameters);
		
		this.setOutputMarkupId(true);

		init();
	}

	public void init(){
		
	}
	
	protected void reportUnexpectedException(Exception e) {
		e.printStackTrace();
		error(getString("unexpectedError") + (e.getMessage() == null ? getString("unknown") : e.getMessage()));
	}

}
